<?php
/**
 * Created by PhpStorm.
 * UsersF: Mloong
 * Date: 2019/1/9
 * Time: 10:05
 */

namespace app\admin\validate;


use think\Validate;

class addAdmin extends Validate
{
    protected $rule = [
        'username' => 'require',
        'password_one' => 'require',
        'password_tow' => 'require',
        'scope' => 'require|in:32'
    ];
    protected $message  = [
        'username.require' => '名称必须',
        'password_one.require' => '密码必须',
        'password_tow.require' => '密码必须',
        'scope.require' => '权限必须',
        'scope.in' => '必须是32的权限',
    ];
}